from gravityassist.musiclib import get_music_list

def list_music():
    musics = get_music_list()
    return [{"id": i, "name": music["name"]} for i, music in enumerate(musics)]
